package com.atguigu.springcloud.service;

import com.atguigu.springcloud.entity.CommonResult;
import com.atguigu.springcloud.entity.Payment;
import org.springframework.stereotype.Component;

/**
 * @USER: dayu
 * @DATE: 2020/4/16
 * @DESCRIPTION:
 */
@Component
public class ConsumerServiceImpl implements ConsumerService {

    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(444444,"服务熔断降级的处理方法",new Payment(id,null));
    }
}
